from pySMART import Device
from pySMART import DeviceList
from pySMART import attribute

# 设备列表（需要管理员身份才能把系统盘列出来）
devlist = DeviceList()
print(devlist)
sa = Device('/dev/sda')
# print(sa.all_attributes())
print(sa.attributes[5])
# print(sa.attributes[196])
# print(sa.attributes[197])
# print(sa.attributes[198])
# print(devlist.devices[0])
